//
//  JPushFunc.m
//  GasCome
//
//  Created by depelec on 2020/7/18.
//  Copyright © 2020 zfc. All rights reserved.
//

#import "JPushFunc.h"


@implementation JPushFunc

+ (void) pushJPushRegisterID {
    
    if (![JPUSHService registrationID]) {
        return;
    }

    NSString *url = @"/tiny-shop/v1/site/set-registration-id";

    NSMutableDictionary *params = [NSMutableDictionary dictionary];
    params[@"registration_id"] = [JPUSHService registrationID];
    [[NetWorksTools shared] requestWithMethod:POST url:url params:params successBlock:^(NSDictionary * _Nonnull response) {

    } failureBlock:^(NSError * _Nonnull error) {

    }];
}

@end
